//
//  BannerCell.m
//  carowner
//
//  Created by apple on 2019/5/17.
//  Copyright © 2019 ggj. All rights reserved.
//

#import "BannerCell.h"
#import "UIImageView+WebCache.h"

@implementation BannerCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        _bannerImage = [[UIImageView alloc] init];
        _bannerImage.backgroundColor = gray_color;
        [self addSubview:_bannerImage];
        [_bannerImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self);
        }];
    }
    return self;
}

@end
